package com.cdsf.kennedy.user.domain;

import com.cdsf.common.util.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author: kennedy
 * @Date: Created in 15:38 2018/2/6
 */
@Table(name = "T_USER")
@ApiModel("用户基本信息")
public class User extends BaseEntity implements Serializable {

    /**
     * 用户名
     */
    @ApiModelProperty("用户名")
    @Column(name = "USER_NAME")
    private String userName;

    /**
     * 登录名
     */
    @ApiModelProperty("登录名")
    @Column(name = "LOGIN_NAME")
    private String loginName;

    /**
     * 密码
     */
    @ApiModelProperty("密码")
    @Column(name = "PASSWORD")
    private String password;

    /**
     * 电话
     */
    @ApiModelProperty("电话")
    @Column(name = "PHONE")
    private String phone;

    /**
     * 地址
     */
    @ApiModelProperty("地址")
    @Column(name = "ADDRESS")
    private String address;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public String toString() {
        return "User{" +
                "userName='" + userName + '\'' +
                ", loginName='" + loginName + '\'' +
                ", password='" + password + '\'' +
                ", phone='" + phone + '\'' +
                ", address='" + address + '\'' +
                '}';
    }
}